{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "97a67793",
   "metadata": {},
   "outputs": [],
   "source": [
    "class myImportantModel(torch.nn.Module):\n",
    "    def __init__(self,hidden_size):\n",
    "        super(myImportantModel,self).__init__()\n",
    "        self.hidden = nn.Linear(hidden_size*2,16)\n",
    "        self.hidden1 = nn.Linear(16,1)\n",
    "        self.relu = nn.LeakyReLU()\n",
    "        self.sig = nn.Sigmoid()\n",
    "    def forward(self,batch_input_ids):\n",
    "        x = model_FinetuneModel.getlstm_out(batch_input_ids)\n",
    "        x = self.relu(self.hidden(x))\n",
    "        x = self.relu(self.hidden1(x))\n",
    "        x = self.sig(x)\n",
    "        return x"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "bert1",
   "language": "python",
   "name": "bert1"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
